import request from '@/utils/request'

export default{
    //获取医院列表
    getHospList(page,limit,searchobj){
        return request({
            url: `/admin/hosp/hospital/list/${page}/${limit}`,
            method:'get',
            params:searchobj
          })
    },
    findBydictcode(dictCode){
        return request({
            url: `/admin/cmn/dict/findByDictCode/${dictCode}`,
            method:'get'
          })
    },
    findChildId(id){
        return request({
            url: `/admin/cmn/dict/findChildData/${id}`,
            method:'get'
          })
    },
    updateStatus(id, status) {
        return request({
          url: `/admin/hosp/hospital/UpdateHospStatus/${id}/${status}`,
          method: 'get'
        })
      },
      getHospById(id) {
        return request ({
          url: `/admin/hosp/hospital/showHospDetail/${id}`,
          method: 'get'
        })
      },
      getscheduleByHoscode(hoscode){
        return request ({
          url: `/admin/hosp/department/getDeptList/${hoscode}`,
          method: 'get'
        })
      },
      getScheduleDetail(){

      },
      getScheduleRule(page,limit,hoscode,depcode){
        return request ({
          url: `/admin/hosp/schedule/getScheduleTime/${page}/${limit}/${hoscode}/${depcode}`,
          method: 'get'
        })
      },
      getScheduleDetail(hoscode,depcode,workdate){
        return request ({
          url: `/admin/hosp/schedule/getScheduleDetail/${hoscode}/${depcode}/${workdate}`,
          method: 'get'
        })
      },
}
